Iaroslav Tverdokhlib's submission of Connecting Soldiers | CodeChef