Practicing using Dynamic Memory Management