Rishabh Singhal's submission of Beautiful Sequence | CodeChef