Basit's submission of pattern22 | CodeChef