Qualcomm interview question

Write the code for singly linked sorted list.