Freshworks Interview Question

Mostly on datastructure and java