Create Hw2Exponent.cpp

Write a C++ program exponent.cpp which, given a sequence of nonnegative integers n1, n2, . . . , nk,
computes and prints the last 4 digits of (· · ·(n
n2
1
)
n3
· · ·)
nk . If the last four digits are all zeros, print
‘0’; otherwise, omit any leading zeros. Example runs of valid input arguments are


Note: Missed few test cases