My solution of the Catalysts Coding Contest