Royal Placement Count - Coding problem | OneNoughtOne