A sample solution of "Triany", a problem in CodeIQ(https://codeiq.jp/), created by @hyuki