Update Queue.scala

changed apply method to be more functional style using foldleft
Merge pull request #4 from abbi-gaurav/master

Update apply method in Queue.scala