Pergunta de entrevista da empresa FactSet

Triangle class code review(very bad code and I think I did not good there) linked list related problem and oop design related problem.