Taranpreet Singh's submission of PERFECT STRING | CodeChef