added solution for 22-nd problem