CodeChef Questions Solution