Update Question2.scala

Changed Int to Double
Merge pull request #1 from pareeje/master

Update Question2.scala