Everpure Interview Question

I was asked to perform a 60 minute coding engineering challenge.