Agnik interview question

Unable to disclose specifics, but general algorithm questions