MTW LABS Interview Question

Write the code for adding new elements dynamically?