Wentao Wang's submission of Devu and Locks | CodeChef