harsh ranjan's submission of Chef and medium problem 2 | CodeChef