Answer:
In main memory
Explanation:
Hope this helps
Online Pictures
Pseudocode and flowchart.
I just got it correct.