PwC interview question

Related mentioned technical stack, design pattern