Rajan Kumar Raj's submission of Inventon | CodeChef