https://www.codechef.com/problems/SCHOOL01

https://www.codechef.com/problems/SCHOOL01

https://www.codechef.com/viewsolution/25519870
Solved it :slight_smile: