Added the problem description and declared variables.