samar's submission of Studds | CodeChef