added hackerrank_John_And_Fences.scala