Creating a new directory
Simple code to find the index of value.