Difference between Layer 1 and layer 2 solution in blockchain

layer1 and layer2