Paymentz interview question

Different between state and props