Reid Rizvi Rahman's submission of Swap and Explore | CodeChef