Some-interview-code Here I need to create a directory for each component, and I want to optimise the conversion algorithm.