Ledger interview question

Questions about FP in Scala