Maximum Non-Adjacent Selection - Coding problem | OneNoughtOne