Vichitr's submission of Magic School | CodeChef