Kardium Interview Question

LC Easy Question, implement class function