OpenAI Interview Question

change directory via i.e. bash -> write a function given current directory and a new location return the new path