Finger exercise for learning Scala.  Solve the triangle peg puzzle.