I want to make the pattern as shown in the images I get stuck at the last with two adjacent corners to be interchanged. How do I do this ?
It is impossible to build a cube in a cube pattern like this.
On a 3x3 Rubik's Cube, it is not possible to switch two opposite or two adjacent corners.
There is another way to build a cue in a cube pattern on a 3x3.
Just follow this algorithm:
U' L' U' F' R2 B' R F U B2 U B' L U' F U R F'
Check out this page for some explanation on the notation.
I found a similar pattern but the color combination is different from the image in question.
Reference ruwix.com known as cube in the cube
you need to start from all color matched Rubik cube position.
F L F U' R U F2 L2 U' L' B D' B' L2 U