Amazon Interview Question

linked list power sums without using inbuilt functions graphs