Implement a timestamped map | Affirm Interview Question