Task 2 Implementation using runtime variables is done in
JAVA Project Algorithms_DataStructures_RTVar