Update Question2.scala

Changed Int to Double