Mastercard Interview Question

1st on arrays 2nd on graphs Dijikstra Algo w time complexity optimization