TATA ELXSI interview question

Questions on linked list, pyramid problems