Hi Preeti,
In addition to Umar's response, you can also refer to the following MathWorks documentation that explains how Value-at-Risk can be estimated using the Historical Simulation Method.
Additionally, you can also refer to the following MathWorks documentation to understand more about the "garch" model.
I hope it helps.