Question d’entretien chez ServiceNow

implement linked list and find the kth smallest node from bst