TopCoder SRM 569 Division 1 Level 2 - The Jedi Test