HP Inc. Interview Question

coding: gas station problem os: deadlock, processes, threads, etc.