Peak Element Coding Ninja Problem