Harris Computer Interview Question

Coding problem with Context API structure