Source: https://icmai.in/upload/Students/Practice_Test_Paper_Inter/Set1/Inter-Sol/Paper8-Solution.pdf