currency combinations - replaced map;foldLeft'' by flatMap