JUSPAY interview question

It was a programming question based on PureScript